package com.xtkj.superclub_photo.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("SUPERCLUB-FASTDFS")
public interface IFastDfsClient {

    @RequestMapping(value = "/fastdfs/uploadFile",method = RequestMethod.POST)
    @ResponseBody
    String uploadFile(@RequestParam("file") MultipartFile file);//上传文件

    @RequestMapping(value = "/fastdfs/deleteFile",method = RequestMethod.DELETE)
    @ResponseBody
    void deleteFile(@RequestParam("filePath") String filePath);//删除服务器上的文件
}
